﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="recepi03.aspx.cs" Inherits="ASPNETandJQUERY.chapter01.recepi03" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="scripts/jquery-1.7.1.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('input:password').bind('copy cut paste', function (e) {
                e.preventDefault();
                alert('Copy/cut/paste disabled in this textbox');
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div align="center">
        <fieldset style="width: 400px; height: 200px;">
            <table style="width: 100%;">
                <tr>
                    <td colspan="2" style="background: red; color: White;">
                        <b>&nbsp; CHANGE PASSWORD</b>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label1" runat="server" Text="Current Password"></asp:Label>
                    </td>
                    <td>
                        &nbsp;<asp:TextBox ID="txtPassword" runat="server" 
                            Width="200px" TextMode="Password"></asp:TextBox>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                        <asp:Label ID="Label2" runat="server" Text="New Password"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtNewPassword" runat="server" Width="200px" 
                            TextMode="Password"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label3" runat="server" Text="Confirm New Password"></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtNewPassword2" runat="server" Width="200px" 
                            TextMode="Password"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td style="text-align: left;">
                        <asp:Button ID="btnSubmit" runat="server" Text="Button" />
                        <asp:Button ID="btnReset" runat="server" Text="Button" />
                    </td>
                </tr>
            </table>
        </fieldset>
    </div>
    </form>
</body>
</html>
